package teacher.action.student;
import com.opensymphony.xwork2.ActionSupport;

import teacher.bean.Students;
import teacher.service.student;

public class deleteStu extends ActionSupport{

	private static final long serialVersionUID = 1L;
	private int stuId;
	String suc;
	
	public String getSuc() {
		return suc;
	}

	public void setSuc(String suc) {
		this.suc = suc;
	}

	public int getStuId() {
		return stuId;
	}

	public void setStuId(int stuId) {
		this.stuId = stuId;
	}

	public String execute(){
		Students s=new Students();
		s.setStuId(stuId);
		if(new student().deleteStu(s)){
			this.setSuc("success");
			return SUCCESS;
		}else{
			return ERROR;
		}
		
	}

}
